import service from '@/utils/request'

// 登录
export function login(data) {
  return service({
    url: '/auth/login',
    method: 'post',
    data,
  })
}

// 注册
export function register(data) {
  return service({
    url: '/auth/register',
    method: 'post',
    data,
  })
}
